all:key.c start.S LedDrv.c
	arm-linux-gcc -c -g -o key.o key.c
	arm-linux-gcc -c -g -o LedDrv.o LedDrv.c
	arm-linux-gcc -c -g -o start.o start.S
	arm-linux-ld -Ttext 0x0 -o ledk.elf start.o LedDrv.o key.o
	arm-linux-objcopy -O binary ledk.elf ledk.bin
	arm-linux-objdump -D -m arm ledk.elf > ledk.dis

clean:
	rm -rf *.o ledk.elf ledk.bin ledk.dis *~
